
<form action="<?php xcho($sSearchAction); ?>" method="get" enctype="application/x-www-form-urlencoded">
    科目
    <select name="subject">
        <option value=""<?php if($aSearch['tsubject']==''){ ?> selected="selected"<?php } ?>>请选择</option>
        <?php foreach($aSubjects as $aSubject){ ?>
        <option value="<?php xcho($aSubject['dict_value']); ?>"<?php if($aSearch['tsubject']==$aSubject['dict_value']){ ?> selected="selected"<?php } ?>><?php xcho($aSubject['cn_name']); ?></option>
        <?php } ?>
    </select>
    
    性别
    <select name="sex">
        <option value=""<?php if($aSearch['sex']==''){ ?> selected="selected"<?php } ?>>请选择</option>
        <?php foreach($aSexes as $aSex){ ?>
        <option value="<?php xcho($aSex['dict_value']); ?>"<?php if($aSearch['sex']==$aSex['dict_value']){ ?> selected="selected"<?php } ?>><?php xcho($aSex['cn_name']); ?></option>
        <?php } ?>
    </select>
    
    级别
    <select name="level">
        <option value=""<?php if($aSearch['level']==''){ ?> selected="selected"<?php } ?>>请选择</option>
        <?php foreach($aLevels as $aLevel){ ?>
        <option value="<?php xcho($aLevel['dict_value']); ?>"<?php if($aSearch['level']==$aLevel['dict_value']){ ?> selected="selected"<?php } ?>><?php xcho($aLevel['cn_name']); ?></option>
        <?php } ?>
    </select>
    
    教育水平
    <select name="degree">
        <option value=""<?php if($aSearch['degree']==''){ ?> selected="selected"<?php } ?>>请选择</option>
        <?php foreach($aDegrees as $aDegree){ ?>
        <option value="<?php xcho($aDegree['dict_value']); ?>"<?php if($aSearch['degree']==$aDegree['dict_value']){ ?> selected="selected"<?php } ?>><?php xcho($aDegree['cn_name']); ?></option>
        <?php } ?>
    </select>
    
    状态
    <select name="job_status">
        <option value=""<?php if($aSearch['job_status']==''){ ?> selected="selected"<?php } ?>>请选择</option>
        <?php foreach($aJobStatuses as $aJobStatus){ ?>
        <option value="<?php xcho($aJobStatus['dict_value']); ?>"<?php if($aSearch['job_status']==$aJobStatus['dict_value']){ ?> selected="selected"<?php } ?>><?php xcho($aJobStatus['cn_name']); ?></option>
        <?php } ?>
    </select>
    
    搜索
    <input type="text" name="keyword" value="<?php xcho($aSearch['keyword']); ?>" autocomplete="off" placeholder="搜索教师名" />
    <input type="submit" value="go" />
</form>
<table border="1">
    <tr>
        <td></td>
        <td><?php if($iOrderBy==1){ ?><a href="<?php xcho($aOrderURLs[2]); ?>">姓名</a><?php }else{ ?><a href="<?php xcho($aOrderURLs[1]);?>">姓名</a><?php } ?></td>
        <td>科目</td>
        <td>级别</td>
        <td>最大同时授课</td>
        <td>天王星ID</td>
        <td>性别</td>
        <td>教育水平</td>
        <td>QQ</td>
        <td>手机号</td>
        <td>状态</td>
        <td>操作</td>
    </tr>
    <?php foreach($aOrderTeachers as $aTeacher){ ?>
    <tr>
        <td><input type="checkbox" /></td>
        <td><a href="<?php xcho($aTeacher['info_url']); ?>" target="_blank"><?php xcho($aTeacher['tname']); ?></a></td>
        <td><?php xcho(join(',',$aTeacher['tsubject_str'])); ?></td>
        <td><?php xcho($aTeacher['level_str']); ?></td>
        <td><?php xcho($aTeacher['max_simul']); ?></td>
        <td><?php xcho($aTeacher['twx_id']); ?></td>
        <td><?php xcho($aTeacher['sex_str']); ?></td>
        <td><?php xcho($aTeacher['degree_str']); ?></td>
        <td><?php xcho($aTeacher['qq']); ?></td>
        <td><?php xcho($aTeacher['cellphone']); ?></td>
        <td><?php xcho($aTeacher['job_status_str']); ?></td>
        <td><a href="<?php xcho($aTeacher['edit_url']); ?>" target="_blank">编辑</a> <a href="<?php xcho($sDeleteAction); ?>">删除</a></td>
    </tr>
    <?php } ?>
</table>
<?php xchoHtml($aOTeachers->render()); ?>
